<?php

class Session{
	
	function __construct(){
		session_start();		
	}//Fin constructor Session
	
	public function set($name, $value){
		
		$_SESSION[$name] = $value;
	}//Fin funcion set

	public function get($name){
		
		if (isset($_SESSION[$name]))
			return $_SESSION[$name];
		else
			return false;
	}//Fin funcion get
	
	public function delete_var($name){
		
		unset($_SESSION[$name]);
	} //Fin funcion delete_var
	
	public function delete_session(){
		
		$_SESSION = array();
		session_destroy();
	} //Fin funcion delete_session
	
	public function SID(){
			return SID;
	}

} //Fin clase Session


?>
